package com.slipper.sfts.stock.front;

import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

import com.slipper.common.bo.Result;
import com.slipper.common.util.ResultUtil;
import com.slipper.sfts.api.stock.bo.StockDealBO;
import com.slipper.sfts.api.stock.service.IStockDealSv;
import com.slipper.sfts.stock.service.StockDealService;

import java.util.List;
import java.util.Map;

@RestController
public class StockDealSv implements IStockDealSv {
    @Resource
    private StockDealService stockDealService;

    @Override
    public Result<List<StockDealBO>> queryPage(StockDealBO bo) {
        return ResultUtil.successResult(stockDealService.queryPage(bo));
    }

    @Override
    public Result<List<Map<String, Object>>> queryMemberReportPage(StockDealBO bo) {
        return ResultUtil.successResult(stockDealService.queryMemberReportPage(bo));
    }

    @Override
    public Result<List<Map<String, Object>>> queryBrokerReportPage(StockDealBO bo) {
        return ResultUtil.successResult(stockDealService.queryBrokerReportPage(bo));
    }

    @Override
    public Result<List<Map<String, Object>>> queryDateReportPage(StockDealBO bo) {
        return ResultUtil.successResult(stockDealService.queryDateReportPage(bo));
    }
}
